// key为组件名称，值为校验方法
const obj = {
    ycAgreedInterestRate: async (value) => {
        let res = await new Promise((res,rej) => {
            setTimeout(()=>{
                res({validate:false,message:'校验出错'})
            },2000)
        })
        return res
        return {validate:true,message:''}
    }
}

let proxyObj = new Proxy(obj, {
    get (target, property) {
        if (!target[property]) {
            console.log('没有此校验方法');
            target[property] = async (value) => {
                return {validate:true,message:''}
            }
        }
        return target[property]
    }
})
export default proxyObj